package com.xuecheng.content.service;

import com.xuecheng.base.model.RestResponse;
import com.xuecheng.content.model.dto.CoursePreviewDto;
import org.springframework.stereotype.Service;

import java.io.File;

/**
 * @Description 课程预览、发布接口
 * @Author dingchunlin
 * @Date 2024/4/4 16:17
 * @Version 1.0.0
 */
public interface CoursePublishService {

    /**
     * @description 获取课程预览信息
     * @param courseId 课程id
     * @date 2022/9/16 15:36
     */
    CoursePreviewDto getCoursePreviewInfo(Long courseId);

    /**
     * 提交审核
     * @param courseId  课程id
     */
    void commitAudit(Long companyId, Long courseId);

    /**
     * @description 课程发布接口
     * @param companyId 机构id
     * @param courseId 课程id
     * @return void
     */
    void publish(Long companyId,Long courseId);

    /**
     * 课程静态化
     * @param courseId
     * @return
     */
    File generateCourseHtml(Long courseId);

    /**
     * 上传课程静态化页面
     * @param courseId
     * @param file
     */
    void uploadCourseHtml(Long courseId,File file);


}
